Conversation
This splits all the theme handling logic to a different file, so it can be reused.
We should use the actual template_file used, not assume index.html.
This is very useful for generating atom feeds, differently named files and etc.
|
Hi @tasn , If I understand correctly, the idea is to generate html files for every html template found in the theme directory. Could you provide an example of how it could be used ? I don't see how you use it to generate a RSS feed: one RSS feed per album, based on the EXIF date ? Also I would prefer not adding a whole theme in the tests sample, just to test this feature. The css/js/image files are not needed for the tests. I have started working on a big refactoring on the storage of album and media informations, I will try to finalize this soon. It will maybe require some updates on your side, I will ping you once it is ready. |
|
Jinja templates are not just for html files, this essentially changes it to work on all of the files found, html or not. This let's you do rss by simple having a template with content that contains the rss format, just like you would with html. As for the tests: point taken, will do. I'd love it if you could update my pull request on the way, as you know best what changes are needed. Anyhow, my changes are quite surgical. I'll try to make the changes as soon as possible. |
This lets you define general templates instead of forcing index.html. This is useful for generating atom, rss, and generally not having index.html.